﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using BaiTapDoAn;

namespace control
{
    public partial class Main : Form
    {
        public Main()
        {
            InitializeComponent();
        }

        private void sachToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FrmQLSach frm = new FrmQLSach();
            frm.MdiParent = this;
            frm.Show();
            layout();
        }
        private void layout()
        {
            this.LayoutMdi(MdiLayout.TileHorizontal);
            this.LayoutMdi(MdiLayout.TileVertical);
        }

        private void phieuToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLPhieuNhap frm = new QLPhieuNhap();
            frm.MdiParent = this;
            frm.Show();
            layout();
        }

        private void phiToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmQLPhieuXuat frm = new frmQLPhieuXuat();
            frm.MdiParent = this;
            frm.Show();
            layout();
        }

        private void kháchHàngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            QLKhachHang frm = new QLKhachHang();
            frm.MdiParent = this;
            frm.Show();
            layout();
        }

        private void theoSốLượngToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThongKeSanPham frm = new ThongKeSanPham();
            frm.MdiParent = this;
            frm.Show();
            layout();
        }

        private void theoChủĐềToolStripMenuItem_Click(object sender, EventArgs e)
        {
            ThongKeTheoChuDe frm = new ThongKeTheoChuDe();
            frm.MdiParent = this;
            frm.Show();
            layout();
        }

        private void tonToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmThongketonkho frm = new frmThongketonkho();
            frm.MdiParent = this;
            frm.Show();
            layout();
        }

    
    }
}
